Blockly.Blocks['panda1'] = {
    init: function() {
      this.appendDummyInput()
          .appendField(new Blockly.FieldImage("../res1/panda1.png", 300, 100, "*"));
      this.setPreviousStatement(true, null);
      this.setNextStatement(true, null);
      this.setColour(330);
   this.setTooltip("");
   this.setHelpUrl("");
    }
  };

  Blockly.Blocks['panda2'] = {
    init: function() {
      this.appendDummyInput()
          .appendField(new Blockly.FieldImage("../res1/panda2.png", 300, 100, "*"));
      this.setPreviousStatement(true, null);
      this.setNextStatement(true, null);
      this.setColour(330);
   this.setTooltip("");
   this.setHelpUrl("");
    }
  };

  Blockly.Blocks['panda3'] = {
    init: function() {
      this.appendDummyInput()
          .appendField(new Blockly.FieldImage("../res1/panda3.png", 300, 100, "*"));
      this.setPreviousStatement(true, null);
      this.setNextStatement(true, null);
      this.setColour(330);
   this.setTooltip("");
   this.setHelpUrl("");
    }
  };

  Blockly.JavaScript['panda1'] = function(block) {
    // TODO: Assemble JavaScript into code variable.
    var code = "#panda1";
    return code;
  };

  Blockly.JavaScript['panda2'] = function(block) {
    // TODO: Assemble JavaScript into code variable.
    var code = '#panda2';
    return code;
  };

  Blockly.JavaScript['panda3'] = function(block) {
    // TODO: Assemble JavaScript into code variable.
    var code = '#panda3';
    return code;
  };